@import './base.css';

:root {
  --primary-bg: #1a1a1a;
  --card-bg: #2a2a2a;
  --hover-bg: #3a3a3a;
  --primary-text: #ffffff;
  --secondary-text: #888888;
  --accent-color: #6c5ce7;
  --border-radius: 8px;
}

.home {
  padding: 24px;
  background-color: var(--primary-bg);
  min-height: calc(100vh - 64px);
}

/* Tabs Section */
.tabs-section {
  margin-bottom: 24px;
}

.tab {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--primary-text);
  cursor: pointer;
  border-radius: var(--border-radius);
}

.tab.active {
  background-color: var(--card-bg);
}

/* Widgets Section */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.widget-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px 16px 0;
}

.widget-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.widget-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--primary-text);
  cursor: pointer;
  border-radius: var(--border-radius);
}

.widget-tab.active {
  background-color: var(--hover-bg);
}

/* Browse Card */
.search-icon-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.search-icon {
  width: 64px;
  height: 64px;
}

.browse-text {
  text-align: center;
  color: var(--secondary-text);
}

/* Calendar Card */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-btn img {
  width: 16px;
  height: 16px;
}

/* Profile Card */
.profile-banner {
  height: 115px;
  background-color: #f0f0f0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.profile-content {
  margin-top: -40px;
  padding: 0 16px 16px;
}

.avatar {
  width: 80px;
  height: 80px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-text);
  font-size: 24px;
  margin-bottom: 16px;
}

.user-meta {
  color: var(--secondary-text);
  font-size: 14px;
  margin: 4px 0 16px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--hover-bg);
  border-radius: 2px;
  margin: 8px 0;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Files Section */
.files-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.left-actions,
.right-actions {
  display: flex;
  gap: 12px;
}

.create-btn,
.sort-btn,
.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--card-bg);
  border: none;
  border-radius: var(--border-radius);
  color: var(--primary-text);
  cursor: pointer;
}

.select-btn,
.filter-icon {
  padding: 8px;
  background-color: var(--card-bg);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.file-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px;
}

.file-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--secondary-text);
  font-size: 14px;
  margin-bottom: 12px;
}

.file-time {
  color: var(--secondary-text);
  font-size: 12px;
}

.more-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.more-btn img {
  width: 16px;
  height: 16px;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

